.dhat-container {
  display: flex;
  flex-direction: column;
  height: 94vh;
  background-color: #f5f5f5;
}

/* 头部样式 */
.dhat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: -10px 0px;
  background-color: rgb(255, 255, 255);
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 10px;
  line-height: 10px;
  margin-left: -15px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.export-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
  color: #666;
}

.export-btn:hover {
  background-color: #f0f0f0;
  color: #007bff;
}

.back-btn {
  background: none;
  border: none;
  font-size: 24px;
  /* cursor: pointer; */
  padding: 4px;
  transition: background-color 0.2s;
}

.back-btn:hover {
  background-color: #f0f0f0;
}

.user-info {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}

.username {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.typing-indicator {
  font-size: 12px;
  color: #666;
  font-style: italic;
  margin-left: 10px;
}

/* 三个点按钮样式 */
.three-dots-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}

.three-dots-btn:hover {
  background-color: #f0f0f0;
}

/* 聊天区域样式 */
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #f5f5f5;
}

/* 背景图样式 */
.chat-messages[style*='background-image'] {
  background-color: transparent !important;
}

/* 消息样式增强，确保在背景图上清晰可见 */
.message {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  /* color: red; */
}

.message.sent {
  align-items: flex-end;
  margin: -6px 0px;
}

.message.received {
  align-items: flex-start;
  margin: -6px 0px;
}

.message-content {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 18px;
  position: relative;
  word-wrap: break-word;
}

.message.sent .message-content {
  background-color: rgba(102, 126, 234, 0.9);
  color: white;
  border-bottom-right-radius: 4px;
  background-color: #2ebc4f;
  margin: -4px 0px;
}

.message.received .message-content {
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-text {
  margin: 0;
  line-height: 1.4;
  word-wrap: break-word;
}

/* 图片消息样式 */
.image-message {
  display: flex;
  justify-content: center;
}

.chat-image {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  object-fit: cover;
}

.chat-image:hover {
  transform: scale(1.05);
}

/* 发送的图片消息样式 */
.message.sent .chat-image {
  border: 2px solid #007aff;
}

/* 接收的图片消息样式 */
.message.received .chat-image {
  border: 2px solid #e0e0e0;
}

/* 文件消息样式 */
.file-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background-color: #f8f9fa;
  border-radius: 8px;
  min-width: 250px;
}

.file-icon {
  font-size: 24px;
  color: #666;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.file-size {
  font-size: 12px;
  color: #666;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #e0e0e0;
  height: 20px;
}

.download-btn {
  background-color: #007aff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.download-btn:hover {
  background-color: #0056cc;
}

/* 发送的文件消息样式 */
.message.sent .file-message {
  background-color: #e3f2fd;
}

/* 接收的文件消息样式 */
.message.received .file-message {
  background-color: #f8f9fa;
}

/* 视频消息样式 */
.video-message {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 250px;
}

.chat-video {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  background-color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.video-name {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  word-break: break-all;
}

.video-size {
  font-size: 12px;
  color: #666;
}

/* 发送的视频消息样式 */
.message.sent .video-message {
  align-items: flex-end;
}

.message.sent .chat-video {
  border: 2px solid #007aff;
}

/* 接收的视频消息样式 */
.message.received .chat-video {
  border: 2px solid #e0e0e0;
}

/* 输入区域样式 */
.message-input {
  display: flex;
  padding: 5px;
  background-color: white;
  border-top: 1px solid #e0e0e0;
  gap: 10px;
}

.input-container {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
}

.input-field {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.input-field:focus {
  border-color: #007aff;
}

/* ===== 语音录制样式 ===== */

/* 语音录制按钮 */
.voice-btn {
  background: none;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007aff;
  position: relative;
}

.voice-btn:hover {
  background-color: #f0f0f0;
  transform: scale(1.1);
}

.voice-btn:active {
  transform: scale(0.95);
}

.voice-btn.recording {
  background-color: #ff4444;
  color: white;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
  }
}

.recording-time {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  white-space: nowrap;
}

/* 语音消息样式 */
.voice-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  background-color: #f8f9fa;
  border-radius: 12px;
  min-width: 120px;
}

.voice-play-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007aff;
  background-color: #e3f2fd;
}

.voice-play-btn:hover {
  background-color: #bbdefb;
  transform: scale(1.1);
}

.voice-duration {
  font-size: 12px;
  color: #666;
  min-width: 30px;
  text-align: center;
}

.voice-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.voice-waveform span {
  width: 3px;
  height: 20px;
  background-color: #007aff;
  border-radius: 2px;
  animation: none; /* 默认不播放动画 */
}

/* 只在播放时显示动画 */
.voice-waveform.playing span {
  animation: wave 1.5s ease-in-out infinite;
}

.voice-waveform span:nth-child(1) {
  animation-delay: 0s;
}
.voice-waveform span:nth-child(2) {
  animation-delay: 0.1s;
}
.voice-waveform span:nth-child(3) {
  animation-delay: 0.2s;
}
.voice-waveform span:nth-child(4) {
  animation-delay: 0.3s;
}
.voice-waveform span:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes wave {
  0%,
  40%,
  100% {
    height: 20px;
  }
  20% {
    height: 30px;
  }
}

.voice-error {
  color: #dc3545;
  font-size: 14px;
  font-style: italic;
}

/* 表情包按钮样式 */
.button-container {
  position: relative;
  margin: 0 -5px;
}

.emoji {
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-left: 100px; */
}

.emoji:hover {
  background-color: #f0f0f0;
}

.emoji svg {
  width: 20px;
  height: 20px;
  color: #666;
}

.emoji svg:hover {
  color: #007aff;
}

/* 加号按钮样式 */
.plus-btn {
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
}

.plus-btn:hover {
  background-color: #e0e0e0;
}

.plus-btn span {
  font-size: 20px;
  font-weight: bold;
  color: #666;
}

.plus-btn:hover span {
  color: #007aff;
}

/* 加号功能菜单样式 */
.plus-menu {
  position: absolute;
  bottom: 48px;
  right: -10px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  padding: 12px;
  min-width: 120px;
  z-index: 2000;
  animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s;
  gap: 10px;
}

.menu-item:hover {
  background-color: #f5f5f5;
}

.menu-icon {
  font-size: 18px;
}

.menu-text {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}

.send-btn {
  padding: 12px 20px;
  background-color: #007aff;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.send-btn:hover:not(:disabled) {
  background-color: #0056cc;
}

.send-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .dhat-container {
    height: 100vh;
  }

  .message-content {
    max-width: 85%;
  }

  .input-field {
    font-size: 14px;
  }

  .send-btn {
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* 相机弹窗样式 */
.camera-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-container {
  background-color: #000;
  border-radius: 16px;
  padding: 20px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.camera-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.camera-title {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.mode-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.mode-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.camera-preview {
  position: relative;
  margin-bottom: 20px;
}

.camera-video {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  background-color: #333;
}

.camera-controls {
  display: flex;
  justify-content: center;
  align-items: center;
}

.capture-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.photo-btn {
  background-color: #007aff;
  color: white;
}

.photo-btn:hover {
  background-color: #0056cc;
  transform: scale(1.1);
}

.record-btn {
  background-color: #ff3b30;
  color: white;
}

.record-btn:hover {
  background-color: #d70015;
  transform: scale(1.1);
}

.stop-btn {
  background-color: #ff9500;
  color: white;
}

.stop-btn:hover {
  background-color: #cc7700;
  transform: scale(1.1);
}

.video-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 录制状态指示器 */
.recording-indicator {
  color: #ff3b30;
  font-size: 14px;
  margin-top: 10px;
}

/* 位置消息样式 */
.location-message {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 250px;
}

.location-map {
  display: flex;
  justify-content: center;
}

.chat-map {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-map:hover {
  transform: scale(1.02);
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.location-address {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  word-break: break-all;
}

.location-coords {
  font-size: 12px;
  color: #666;
  font-family: monospace;
}

.location-error {
  color: #ff3b30;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* 发送的位置消息样式 */
.message.sent .location-message {
  align-items: flex-end;
}

.message.sent .chat-map {
  border: 2px solid #007aff;
}

/* 接收的位置消息样式 */
.message.received .chat-map {
  border: 2px solid #e0e0e0;
}

/* 位置选择器弹窗样式 */
.location-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-container {
  background-color: white;
  border-radius: 16px;
  padding: 20px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 400px;
}

.location-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

.location-title {
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.location-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.location-get {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  width: 100%;
}

.location-icon {
  font-size: 48px;
  color: #007aff;
}

.location-text {
  color: #666;
  font-size: 16px;
}

.get-location-btn {
  background-color: #007aff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: -40px;
}

.get-location-btn:hover:not(:disabled) {
  background-color: #0056cc;
}

.get-location-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.location-divider {
  color: #999;
  font-size: 14px;
  margin: -10px 0;
}

.location-map-select {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.map-select-text {
  color: #666;
  font-size: 14px;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.map-selector {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  transition: border-color 0.2s;
}

.map-container:hover .map-selector {
  border-color: #007aff;
  /* color: red; */
}

.map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.location-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.preview-map {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}

.location-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.location-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.reset-location-btn {
  background-color: #ff9500;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.reset-location-btn:hover {
  background-color: #e6850e;
}

.send-location-btn {
  background-color: #46b963;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.send-location-btn:hover {
  background-color: #28a745;
}

/* 语音输入转文字功能样式 */
.voice-input-status {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 16px;
  margin: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideInUp 0.3s ease-out;
}

.voice-input-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voice-wave-animation {
  display: flex;
  align-items: center;
  gap: 2px;
}

.voice-wave-animation span {
  width: 3px;
  height: 20px;
  background: white;
  border-radius: 2px;
  animation: voiceWave 1.2s ease-in-out infinite;
}

.voice-wave-animation span:nth-child(1) {
  animation-delay: 0s;
}
.voice-wave-animation span:nth-child(2) {
  animation-delay: 0.1s;
}
.voice-wave-animation span:nth-child(3) {
  animation-delay: 0.2s;
}
.voice-wave-animation span:nth-child(4) {
  animation-delay: 0.3s;
}
.voice-wave-animation span:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes voiceWave {
  0%,
  40%,
  100% {
    height: 20px;
  }
  20% {
    height: 40px;
  }
}

.voice-input-text {
  font-size: 14px;
  font-weight: 500;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 语音输入按钮在菜单中的样式 */
.menu-item[onClick*='handleVoiceInput'] {
  transition: all 0.2s;
}

.menu-item[onClick*='handleVoiceInput']:hover {
  background: #e3f2fd;
  transform: scale(1.05);
}

.menu-item[onClick*='handleVoiceInput'] .menu-text {
  color: #1976d2;
  font-weight: 400;
}

/* 时间分隔符样式增强 */
.time-separator {
  text-align: center;
  margin: 0px;
  color: #666;
  font-size: 12px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 6px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-left: 50%;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.time-separator span {
  padding: 0 10px;
}

/* 导出菜单样式 */
.export-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  animation: fadeIn 0.2s ease-out;
}

.export-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  animation: slideInUp 0.3s ease-out;
}

.export-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.export-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.export-content {
  padding: 20px;
}

.export-info {
  margin-bottom: 20px;
  text-align: center;
}

.export-info p {
  margin: 5px 0;
  color: #666;
}

.export-detail {
  font-size: 14px;
  color: #999;
}

.export-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.export-option {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.export-option:hover {
  border-color: #007bff;
  background: #f8f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.export-icon {
  font-size: 24px;
  margin-right: 12px;
  width: 32px;
  text-align: center;
}

.export-text {
  flex: 1;
}

.export-format {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.export-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.loading {
  text-align: center;
  color: #666;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  margin: 20px;
  backdrop-filter: blur(10px);
}

/* 撤回消息相关样式 - 像时间分隔符一样居中显示 */
.time-separator .recall-text {
  color: #999;
  font-size: 12px;
  font-style: italic;
}

.time-separator .re-edit-btn {
  margin-left: 8px;
  background: #007bff;
  color: white;
  border: none;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.time-separator .re-edit-btn:hover {
  background: #0056b3;
}

.re-edit-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.re-edit-btn:hover {
  background: #0056b3;
}

.message-actions {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.message:hover .message-actions {
  opacity: 1;
}

.recall-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.recall-btn:hover {
  background: #c82333;
}

/* AI功能相关样式 */
.clickable-message {
  position: relative;
  transition: all 0.2s ease;
}

.clickable-message:hover {
  background-color: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  padding: 4px 8px;
  margin: -4px -8px;
}

.ai-hint {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 1000;
}

.clickable-message:hover .ai-hint {
  opacity: 1;
}

.message-text.clickable-message:hover {
  background-color: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  padding: 4px 8px;
  margin: -4px -8px;
}
